<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <script>
        window.onload=function(){
            var mixin={
                data(){
                    return{
                        num:20
                    }
                },
                methods:{},
                created(){
                    alert('')
                }
            }
            new Vue({
                el:'#app',
                data:{
                    num:88
                },
                mixins:[mixin],
                methods:{},
                components:{
                    'my-div':{
                        data(){
                            return{

                            }
                        },
                        methods:{},
                        mixins:[mixin],
                        template:`
                            <div>
                                <h1>hello-{{num}}</h1>
                            </div>
                        `
                    }
                }
            })
        }
    </script>
</head>
<body>
    <div id="app">
        {{num}}
        <my-div></my-div>
    </div>
</body>
</html>